package com.zjgk.hotel.controller;

import com.zjgk.hotel.service.AdminService;
import com.zjgk.hotel.service.UserService;
import com.zjgk.hotel.vo.Result;
import com.zjgk.hotel.vo.params.WxUserLoginParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
public class AdminController {
    @Autowired
    private UserService userService;

    @Autowired
    private AdminService adminService;


    @PostMapping("/login")
    public Result adminLogin(@RequestPart String username,@RequestPart String pwd){
        return adminService.adminLogin(username,pwd);

    }

}
